package org.oschina.api.discuss.discuss.vo;

import org.oschina.Constants;
import org.oschina.api.discuss.forum.vo.DiscussForumVo;
import org.oschina.api.discuss.order.vo.DiscussOrderVo;
import org.oschina.api.user.user.vo.UserVo;
import org.oschina.bean.BaseBean;
import org.oschina.helper.query.annotation.Cache;
import org.oschina.helper.query.annotation.Table;

@Table(name=Constants.DB_DISCUSS)
@Cache(name=Constants.CACHE_DISCUSS,timeout=Constants.TIMEOUT_DISCUSS)
public class DiscussVo extends BaseBean {

	private Integer id;
	private String title;
	private String content;
	private UserVo author;
	private UserVo last_author;
	private Integer comment_id;
	private Integer views_count;
	private Integer comment_count;
	private Integer favorite_count;
	private Integer type;
	private DiscussForumVo forum;
	private DiscussOrderVo order;
	private Long create_time;
	private Long last_time;
	
	public Integer getFavorite_count() {
		return favorite_count;
	}
	public void setFavorite_count(Integer favoriteCount) {
		favorite_count = favoriteCount;
	}
	public Integer getId() {
		return id;
	}
	public String getTitle() {
		return title;
	}
	public String getContent() {
		return content;
	}
	public UserVo getAuthor() {
		return author;
	}
	public UserVo getLast_author() {
		return last_author;
	}
	public Integer getComment_id() {
		return comment_id;
	}
	public Integer getViews_count() {
		return views_count;
	}
	public Integer getComment_count() {
		return comment_count;
	}
	public Integer getType() {
		return type;
	}
	public DiscussForumVo getForum() {
		return forum;
	}
	public DiscussOrderVo getOrder() {
		return order;
	}
	public Long getCreate_time() {
		return create_time;
	}
	public Long getLast_time() {
		return last_time;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setAuthor(UserVo author) {
		this.author = author;
	}
	public void setLast_author(UserVo lastAuthor) {
		last_author = lastAuthor;
	}
	public void setComment_id(Integer commentId) {
		comment_id = commentId;
	}
	public void setViews_count(Integer viewsCount) {
		views_count = viewsCount;
	}
	public void setComment_count(Integer commentCount) {
		comment_count = commentCount;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public void setForum(DiscussForumVo forum) {
		this.forum = forum;
	}
	public void setOrder(DiscussOrderVo order) {
		this.order = order;
	}
	public void setCreate_time(Long createTime) {
		create_time = createTime;
	}
	public void setLast_time(Long lastTime) {
		last_time = lastTime;
	}

}